package com.hqyj.project.controller;


import com.hqyj.project.service.EchartService;
import com.hqyj.project.utils.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/echart")
public class EchartsController {

    @Autowired
    private EchartService echartService;


    @GetMapping("/lizhi")
    @ResponseBody
    public CommonResult lizhi(){
        return echartService.getTurnoverRate();
    }

    @GetMapping("/deptNumberPeople")
    @ResponseBody
    public CommonResult deptNumberPeople(){
        return echartService.deptNumberPeople();
    }
}
